package com.csu.common.exception;

/**
 * @项目名称：watch_mark
 * @类名称：WebException
 * @类描述：自定义web异常处理公共类
 * @创建人：TangC
 * @创建时间：2015-7-30 上午10:39:55
 */
public class WebException extends Exception
{
    /**
     * @description：
     */
    private static final long serialVersionUID = 1L;
    /*
     * 错误码
     */
    private String code;
    /*
     * 错误信息
     */
    private String desc;

    /**
     * @description：构造函数
     * @author dongg
     * @date 2015-1-27
     * @param errorCode
     * @param errorInfo
     */
    public WebException(String code, String desc)
    {
        super(desc);

        this.code = code;

        this.desc = desc;
    }

    /**
     * @return the code
     */
    public String getCode()
    {
        return code;
    }

    /**
     * @param code the code to set
     */
    public void setCode(String code)
    {
        this.code = code;
    }

    /**
     * @return the desc
     */
    public String getDesc()
    {
        return desc;
    }

    /**
     * @param desc the desc to set
     */
    public void setDesc(String desc)
    {
        this.desc = desc;
    }

    /**
     * @return the serialversionuid
     */
    public static long getSerialversionuid()
    {
        return serialVersionUID;
    }


}
